/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const router = {
  hidden: false,
  path: '/financeManagement',
  component: Layout,
  redirect: '/financeManagement/feeBill-list',
  meta: {
    title: '财务管理',
    icon: 'money',
    roles: ['BusinessModuleManagement.FinanceManagement']
  },
  children: [
    {
      hidden: false,
      path: 'feeBill-list',
      name: 'FinanceManagementFeeBill',
      component: () => import('@/views/financeManagement/feeBill/list'),
      meta: { title: '审核入帐', icon: '', roles: ['FeeBillManagement.FeeBill'] }
    },
    {
      hidden: false,
      path: 'liquidation-list',
      name: 'FinanceManagementLiquidation',
      component: () => import('@/views/financeManagement/liquidation/list'),
      meta: { title: '单据清算', icon: '', roles: ['LiquidationManagement.Liquidation'] }
    },
    {
      hidden: false,
      path: 'collection-list',
      name: 'FinanceManagementCollection',
      component: () => import('@/views/financeManagement/collection/list'),
      meta: { title: '财务收款', icon: '', roles: ['CollectionManagement.Collection'] }
    },
    {
      hidden: false,
      path: 'payment-list',
      name: 'FinanceManagementPayment',
      component: () => import('@/views/financeManagement/payment/list'),
      meta: { title: '财务付款', icon: '', roles: ['PaymentManagement.Payment'] }
    }
  ]
}

export default router
